// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui';  //导入组件
import 'element-ui/lib/theme-chalk/index.css';  //导入样式

// 引入echarts
import echarts from 'echarts'
import VueParticles from 'vue-particles'//导入炫动粒子
import '@/assets/css/global.css'

Vue.use(VueParticles)
Vue.prototype.$echarts = echarts;
Vue.use(VueAwesomeSwiper)
Vue.use(ElementUI); //全局引用

import VueAwesomeSwiper from 'vue-awesome-swiper/dist/ssr'

// import VueAMap from 'vue-amap'
// import {lazyAMapApiLoaderInstance} from 'vue-amap'
// Vue.use(VueAMap)
// VueAMap.initAMapApiLoader({
//   key: '86f0b3feb021729b77f9305da0c47f08',
//   plugin: ['AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType'],
//   v: '1.4.4'
// });
// lazyAMapApiLoaderInstance.load().then(() => {
//   // your code ...
//   this.map = new AMap.Map('amapContainer', {
//     center: new AMap.LngLat(121.59996, 31.197646)
//   });
// });


Vue.config.productionTip = false
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: {App},
  template: '<App/>',
})
